import request from '@/utils/request'

// 查询资质信息列表
export function listCredentialInfo(query) {
  return request({
    url: '/supply/credentialInfo/list',
    method: 'get',
    params: query
  })
}

// 查询资质信息详细
export function getCredentialInfo(credentialId) {
  return request({
    url: '/supply/credentialInfo/' + credentialId,
    method: 'get'
  })
}

// 新增资质信息
export function addCredentialInfo(data) {
  return request({
    url: '/supply/credentialInfo',
    method: 'post',
    data: data
  })
}

// 修改资质信息
export function updateCredentialInfo(data) {
  return request({
    url: '/supply/credentialInfo',
    method: 'put',
    data: data
  })
}

// 删除资质信息
export function delCredentialInfo(credentialId) {
  return request({
    url: '/supply/credentialInfo/' + credentialId,
    method: 'delete'
  })
}
